package com.no1ikun.view;

import javax.swing.*;

public class MyJTextField extends JTextField {
    private int x;
    private int y;
    private int width;
    private int height;

    public MyJTextField(int x, int y, int width, int height) {
        this.x = x;
        this.y = y;
        this.width = width;
        this.height = height;
        init();
    }

    private void init() {
        //6.添加账号和密码输入框


        //设置显示的位置及宽高
//        this.setBounds(200, 118, 235, 25);
        this.setBounds(x, y, width, height);
        //去掉边框
        this.setBorder(null);

    }
}
